package com.ztgf.sms.models.service;

import com.baomidou.mybatisplus.service.IService;
import com.ztgf.sms.models.bo.EmailSendBO;
import com.ztgf.sms.models.dto.email.EmailInfoDTO;

/**
 * author: chenyu.wang
 * date: 2020-05-23 17:34
 * Description:
 */
public interface IEmailInfoService extends IService<EmailInfoDTO> {


    /**
     * description: 邮件发送接口
     * param: [emailInfoBO]
     * author: chenyu.wang
     * date: 2020-05-23
     * return: boolean
     */
    void sendMail(EmailSendBO emailInfoBO);

    void saveCaptcha(EmailSendBO emailInfoBO); //发送验证码

    void sendCaptcha(EmailSendBO emailInfoBO); //发送验证码

    boolean getCaptcha(EmailSendBO emailInfoBO); //验证验证码

    void sendActiveEail(EmailSendBO emailInfoBO); //发送激活邮件

    void adminMessagePush(Integer type, String title, String context, String ids);

    void sendInvoiceEmail(EmailSendBO bo);

    boolean sendMailByScheduled(String title, String context, String[] emailsArr);
}
